import {createSlice}from '@reduxjs/toolkit'
const count=createSlice({
    name:'count',
    initialState:{
        count:0
    },
    reducers:{
        increment(state){
            state.count++
        },
        decrement(state){
            state.count--
        }
    }
})
export const{increment,decrement}=count.actions
export default count